You are here: COM API reference > Events > BeforeRename event

BeforeRename event

This event occurs just before an object is renamed.

Syntax

Private Sub AMUIExtension_BeforeRename(
                     ByVal Object As Object,
                     ByVal NewName As String,
                     Abort As Boolean)
Parameters
Name Description

Object

The object that will be renamed.

NewName

The new display name (file name) for the object.

Abort

Setting this argument to True will abort the rename operation. The AfterRename event will not occur.

Remarks

A good use of this event is to implement strict naming rules.

For documents the equivalent VBScript event is the Rename script event. See the BlueCielo Meridian Enterprise VBScript API Reference for more information.


www.bluecieloecm.com